﻿<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
<head>
<meta charset="utf-8">
<title>查询作业</title>
<script type="text/javascript">
function checkform(pingjia_id) {
	var pingjia=prompt("请输入评价内容", "");
	document.getElementById("zypj_"+pingjia_id).value=pingjia;
	document.getElementById("tijiaopj_"+pingjia_id).submit();
	} 
</script>
<style>
#log {
	width: 960px;
	height: 90px;
}
#nav {
	width: 960px;
	height: 48px;
}
#nav .content_nav 
{
	width: 960px;
	height: 48px;
	margin: 0px 0px;
	background:#71BBBB;
}
#nav a {
	font-size: 19px;
	color:#6F0;
	font-family:"微软雅黑";
	font-weight:bold;
	display: inline-block;
	line-height: 48px;
	text-decoration: none;
}
a.other {
	padding: 0 23px;
}
a.other:hover 
{
	background:#999;
}
body{
	margin:auto;
	width:960px;
	 bgcolor:#FFFFFF;
}
.gonggao{
	width: 258px;
	height: 699px;
	float:left;
	border-right:1px solid #6F0;
	border-bottom:1px solid #6F0;
	border-left:1px solid #6F0;
	background:#71CABF;
}
.neirong{
	width: 699px;
	height: 699px;
	float:right;
	border-bottom:1px solid #6F0;
	border-right:1px solid #6F0;
	background:#FFD;
}
.zhengwen{
	width: 960px;
	height: 700px;
}
</style>
</head>

<body>

<div id="log">
<img src="img/admin.gif"/>
</div>
<!--导航部分-->
<div id="nav">
	<s:url id="getAction" value="getLiuyan"> 
     </s:url>
	<div class="content_nav" align="center">	
	<a href="admin.jsp" class="other">系统首页</a>
	<a href="fbzy.jsp" class="other">发布作业</a>
	<a href="cxzy.jsp" class="other">查询作业</a>
	<a href="rygl.jsp" class="other">人员管理</a>
	<s:a href="%{getAction}">留言板</s:a>
 	</div>
</div>
<!--导航结束-->
<div class="zhengwen" align="center">
<div class="gonggao">
  <table width="100%" border="0">
    <tr>
      <td style="color:#03F">欢迎您，【<s:property value="%{#session.login.userName}"/>】老师</td>
    </tr>
    <tr>
      <th>公告列表：</th>
    </tr>
    <tr>
      <td>公告内容</td>
    </tr>
  </table>
</div>
<div class="neirong" align="left">
<s:form action="getNamezuoye" method="post">
<s:textfield name="stuName" size="12"/>
<s:hidden name="isAdmin" value="true"></s:hidden>
<br/>
<s:submit value="按学生姓名查询"/>
</s:form>
<s:form action="getAllzuoye" method="post">
<s:submit value="查询所有提交的作业"/>
</s:form>
<center><font color="red" size="-1"><s:property value="log" /></font></center>
<table width="100%" border="1" align="center" style="font-size:12px">
<tr>
<th width="25%" >上传时间</th><th width="10%">姓名</th><th width="25%">作业名称</th><th width="30%">评语</th><th width="10%">操作</th>
</tr>
<s:iterator value="allList" >
<tr align="center">
<td width="25%" ><s:date name="%{zuoyeUpdate}" format="yyyy-MM-dd HH:mm:ss" /></td>
<td width="10%"><s:property value="userName"/></td>

<td width="25%">
<s:url id="fileurl" action="FileDownload">   
	<s:param name="fileUrl"><s:property value="zuoyeUrl"/></s:param>
</s:url>
<s:a href="%{fileurl}"><s:property value="zuoyeName"/></s:a></td>

<td width="30%"><s:property value="zuoyePingyu"/></td>
<td width="30%">
<s:form action="addPJ" method="post" id="tijiaopj_%{id}">
<s:hidden name="zyID" value="%{id}" ></s:hidden>
<s:hidden name="zyPJ" id="zypj_%{id}" value="" ></s:hidden>
<s:submit value="评价" onClick="checkform(${id});"/>
</s:form>
</td>
</tr>
</s:iterator>
</table>
</div>
</div>
<div class="content_nav" align="center">	
	版权所有--托普学院--互联网一班</div>

</body>
</html>
